package ly.sjun.design.builder_pattern;

import ly.sjun.design.builder_pattern.food.fruit.*;
import ly.sjun.design.builder_pattern.food.packing.Canteen;
import ly.sjun.design.builder_pattern.food.packing.Pack;
import ly.sjun.design.builder_pattern.food.tea.BlackTea;
import ly.sjun.design.builder_pattern.food.tea.GreenTea;

/**
 * @ClassName: MealBuilder
 * @Author: ly
 * @Date: 2023/2/2-10:32
 * @Version: 1.0
 * @Description TODO
 **/
public class MealBuilder {

    public Meal classic(){
        Meal meal = new Meal();
        meal.add(new Apple());
        meal.add(new PassionFruit());
        meal.add(new Watermelon());
        meal.add(new Grapes());
        meal.add(new BlackTea());

        meal.setPacking(new Canteen());
        return meal;
    }

    public Meal classic_green(){
        Meal meal = new Meal();
        meal.add(new Apple());
        meal.add(new PassionFruit());
        meal.add(new Watermelon());
        meal.add(new Grapes());
        meal.add(new GreenTea());

        meal.setPacking(new Canteen());
        return meal;
    }

    public Meal classic_pack(){
        Meal meal = new Meal();
        meal.add(new Apple());
        meal.add(new PassionFruit());
        meal.add(new Watermelon());
        meal.add(new Grapes());
        meal.add(new BlackTea());

        meal.setPacking(new Pack());
        return meal;
    }

    public Meal classic_green_pack(){
        Meal meal = new Meal();
        meal.add(new Apple());
        meal.add(new PassionFruit());
        meal.add(new Watermelon());
        meal.add(new Grapes());
        meal.add(new GreenTea());

        meal.setPacking(new Pack());
        return meal;
    }

    public Meal family_bucket(){
        Meal meal = new Meal();
        meal.add(new Apple());
        meal.add(new Grapes());
        meal.add(new Kumquat());
        meal.add(new Lemon());
        meal.add(new Mango());
        meal.add(new PassionFruit());
        meal.add(new Watermelon());
        meal.add(new BlackTea());

        meal.setPacking(new Canteen());
        return meal;
    }

    public Meal family_bucket_green(){
        Meal meal = new Meal();
        meal.add(new Apple());
        meal.add(new Grapes());
        meal.add(new Kumquat());
        meal.add(new Lemon());
        meal.add(new Mango());
        meal.add(new PassionFruit());
        meal.add(new Watermelon());
        meal.add(new BlackTea());
        return meal;
    }



}
